package com.margo.project.properties.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.margo.project.properties.configure.MargoConfigurationProperties;

@Controller
@RequestMapping("/config/properties")
public class MargoConfigurationPropertiesController {

	@Autowired
	private MargoConfigurationProperties margoConfigurationProperties;
	
	@RequestMapping("/name")
	@ResponseBody
	public String name() {
		return margoConfigurationProperties.getName();
	}
}
